package com.example.mydemo.entity;

import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.*;
import lombok.experimental.Accessors;

import java.util.Date;
import java.util.List;


@TableName("sys_user")
@Data // 若未使用lombok插件，请自行生成getter、setter以及toString方法
public class Users {
    @TableId(value = "id", type = IdType.AUTO)
    @ExcelProperty(value = "主键ID", index = 0)
    private Long id;
    @ExcelProperty(value = "部门ID", index = 1)
    private Long dep;
    @ExcelProperty(value = "姓名", index = 2)
    private String name;
    @ExcelProperty(value = "邮箱", index = 3)
    private String email;

    @ExcelProperty(value = "xx", index = 4)
    private Long isDelete;

    @ExcelProperty(value = "ww", index = 5)
    private Date createTime;

    @ExcelProperty(value = "ss", index = 6)

    private Date updateTime;

    @ExcelProperty(value = "qq", index = 7)

    private String createBy;

    @ExcelProperty(value = "mm", index = 8)

    private String updateBy;
    // Getters and setters
//    @TableField(exist = false)  // 表示该字段不在数据库中存在
//    private List<Daka> checkIns;
}

